import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    seachInpval:'',
    seachShow:'SearchDefaltVue',
    show:0,
  },
  mutations: {
    changeInp(state,val){
      state.seachInpval=val
      if(val!=''){
        if(state.seachShow!='SearchResultVue'){
        state.seachShow='SearchHotVue';
      }
      }else{
       
        state.seachShow='SearchDefaltVue';
  
      }
    },
    showSearRes(state){
        state.seachShow='SearchResultVue';
    }
  },
  actions: {
  
  },
  modules: {
  }
})
